package xcmg.device.dao.mapper.logistic;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xcmg.device.dao.entity.logistic.LogisticNodeRecordDO;

import java.util.List;

@Mapper
public interface LogisticNodeRecordMapper {

    int deleteByPrimaryKey(String id);

    int insert(LogisticNodeRecordDO record);

    int insertSelective(LogisticNodeRecordDO record);

    LogisticNodeRecordDO selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(LogisticNodeRecordDO record);

    int updateByPrimaryKey(LogisticNodeRecordDO record);

    List<LogisticNodeRecordDO> selectByWayBillId(@Param("wayBillId") String wayBillId);

    int batchInsertLogisticRecord(@Param("logisticRecords") List<LogisticNodeRecordDO> logisticRecords);

    int deleteAutoDeliveryingLogisticRecord(String wayBillId);

}
